package com.sdjzu.wangfuying.hellospringboot.config;

import com.sdjzu.wangfuying.hellospringboot.bean.db.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class StudentConfig {

    @Bean(name = "test")
    public Student getStudent() {
        Student student = new Student();
        student.setId(3027);
        student.setName("Wang Fuying");
        return student;
    }
}
